﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>M-APP Photo Diary</title>
<link href="MasterStyle.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="http://worldbank.thetigerparty.com/favicon.ico" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
        $('#submitLoc').hover(
            function(){ // Change the input image's source when we "roll on"
                $(this).attr({ src : 'images/LocationSearch_On.png'});
            },
            function(){ // Change the input image's source back to the default on "roll off"
                $(this).attr({ src : 'images/LocationSearch.png'});             }
        );
		$('#submitEmail').hover(
            function(){ // Change the input image's source when we "roll on"
                $(this).attr({ src : 'images/EmailSearch_On.png'});
            },
            function(){ // Change the input image's source back to the default on "roll off"
                $(this).attr({ src : 'images/EmailSearch.png'});             }
        );
		$('#DownloadApp').hover(
            function(){ // Change the input image's source when we "roll on"
                $(this).attr({ src : 'images/SubmitBtn_On.png'});
            },
            function(){ // Change the input image's source back to the default on "roll off"
                $(this).attr({ src : 'images/SubmitBtn.png'});             }
        );
		$('#AdminLogin').hover(
            function(){ // Change the input image's source when we "roll on"
                $(this).attr({ src : 'images/SubmitBtn_On.png'});
            },
            function(){ // Change the input image's source back to the default on "roll off"
                $(this).attr({ src : 'images/SubmitBtn.png'});             }
        );
    });
	
	
	function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}
function checkVersion()
{
  var msg = "This site is supported only in Safari, Firefox or Chrome.";
  var ver = getInternetExplorerVersion();

  if ( ver > -1 )
  {
    if ( ver >= 8.0 ) 
      msg = "This site is supported only in Safari, Firefox or Chrome.";
	   alert( msg );
  } else {
      msg = "This site is supported only in Safari, Firefox or Chrome.";
	  alert( msg );
  }
 
}

</script>


<script type="text/javascript">
<!--
    function submitenter(myfield, e) {
    var keycode;
    if (window.event) keycode = window.event.keyCode;
    else if (e) keycode = e.which;
    else return true;

    if (keycode == 13) {
    myfield.form.submit();
    return false;
    }
    else
    return true;
    }


    /* Clear default form value script- by JavaScriptKit.com
    Featured on JavaScript Kit (http://javascriptkit.com)
    Visit javascriptkit.com for 400+ free scripts!
    */

    function clearText(thefield) {
        if (thefield.defaultValue == thefield.value)
            thefield.value = ""
    }
    function AdminLogin_onclick() {

    }

    



</script>
<script type="text/javascript"src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="Scripts/Gmaps.js"></script>

    <style type="text/css">
        #map_canvas
        {
            height:598px;
            width: 759px;
            margin-left: 228px;
        }
    </style>
</head>
<body>
<form runat="server">
<div class="MainContainer">
	
  <img src="images/Mapp_Logo.png" class="LogoImage" />
    
<div class="SortForm">

    <input id="address" type="text" value="" class="textInput">
        <br />
        <input id="Bt_SearchByCity" type="button" value="" class="submit" onclick="return Bt_SearchByCity_onclick()"/>
        <br /><br />
      <input id="email" name="searchEmail" type="text" class="textInput"/>
<br />
        <asp:ScriptManager ID="MainScriptManager" runat="server"/>
        <asp:UpdatePanel ID="pnlHelloWorld" runat="server">
            <ContentTemplate>
                <asp:Button ID="Bt_ByEmail" runat="server" onclick="Bt_ByEmail_Click" Text=""/>
            </ContentTemplate>
        </asp:UpdatePanel>
        
  </div>

  
   <div id="map_canvas"></div>

  <div class="BottomLayer">
  <span class="formTitle">DOWNLOAD APP</span><br />
  		
            <input name="Txt_Downloademail" type="text" class="textInput2" value="Enter Your Email" onfocus="clearText(this)"/>
            <asp:UpdatePanel ID="DownloadPanel" runat="server">
            <ContentTemplate>
                <asp:Button ID="Bt_DownloadLink" class="submit" runat="server" Text="" onclick="Bt_DownloadLink_Click" />
            </ContentTemplate>
            </asp:UpdatePanel>
            <!--input type="image" name="submit3" class="submit" id="DownloadApp" src="images/SubmitBtn.png"!-->
   </div>




   <div class="Admin">
          <span class="formTitle">ADMIN</span><br />
            <input id="userName" name="userName" type="text" class="textInput2" value="Username" onfocus="clearText(this)" />
            <input id="passWord" name="passWord" type="password" class="textInput2" value="Password" onfocus="clearText(this)"/>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
             <ContentTemplate>
            <asp:Button ID="Bt_Login" class="submit" runat="server" Text="" onclick="Bt_Login_Click" />
            </ContentTemplate>
            </asp:UpdatePanel>
        </div>
   
  </div>
  
<span class="footer"><br />
This is M-APPs mobile photo blogging project based on Blackberry. Please contact <a href="mailto:wbmapp@gmail.com">wbmapp@gmail.com</a> for more details. This site is best viewed in Safari, Firefox or Chrome.</span>
</form> 
</body>
</html>

